<?php 

namespace app\common\validate\equipment;

use think\Validate;

class EquipmentPosition extends Validate 
{ 
    protected $rule = [
        'equipment_position_name' => 'require',
    ];

    protected $message = [
        'equipment_position_name.require' => '请输入出入口名称',
    ];

    protected $scene = [
        'edit' => ['equipment_position_name','equipment_position_type','admin_name','id'],
        'add' => ['equipment_position_name','equipment_position_type','admin_name'],
    ];

} 
